package cn.zhf.shop.mapper;

import cn.zhf.shop.entity.Financial;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FinancialMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Financial record);

    int insertSelective(Financial record);

    Financial selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Financial record);

    int updateByPrimaryKey(Financial record);

    List<Financial> selectAllByType(@Param("type") String type);

    List<Financial> selectAllByDownloadAndType(@Param("download") String download, @Param("type") String type);

    List<Financial> selectAll();

    List<Financial> selectAllByUpdateTime(@Param("updateTime") String updateTime);


    int deleteByDownload();

}